var flagStrategies = {
  game: function () {
    return '<div class="flag flag-game"></div>';
  },
  free: function () {
    return '<div class="flag flag-free"></div>';
  },
  subject: function () {
    return '<div class="flag flag-subject"></div>';
  },
  activity: function () {
    return '<div class="flag flag-activity"></div>';
  },
  default: function () {
    return "";
  },
  hanlder: function (type) {
    var ctype = "";
    switch (type) {
      case "2":
        ctype = "subject";
        break;
      case "3":
        ctype = "activity";
        break;
      case "4":
        ctype = "game";
        break;
      default:
        ctype = "default";
        break;
    }
    return this[ctype]();
  },
};